<?php
$title = '详情页面';
include 'commonHeader.php';
?>
<body>
<?php
// 连主库
$link = mysql_connect(SAE_MYSQL_HOST_M . ':' . SAE_MYSQL_PORT, SAE_MYSQL_USER, SAE_MYSQL_PASS);

// 连从库
// $link=mysql_connect(SAE_MYSQL_HOST_S.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
mysql_select_db(SAE_MYSQL_DB, $link);
mysql_query("set names utf8");
$n = $_GET['no'];
$result = mysql_query("SELECT * FROM lostandfound where no='$n'");

/*echo "<table border='1'>
<tr>
<th>种类</th>
<th>地点</th>
<th>日期</th>
<th>详情</th>

</tr>";

while($row = mysql_fetch_array($result))
	{
		if($row['lorf']==f)
		{
	echo "<tr>";
	echo "<td>" . $row['kind']) . "</td>";
	echo "<td>" . $row['position']) . "</td>";
	echo "<td>" . $row['date']) . "</td>";
	echo "<td>" . $row['remark']) . "</td>";
	echo "</tr>";
		}
	}
echo "</table>";

echo "";*/
while ($row = mysql_fetch_array($result)) {
	echo "
	<div class=\"remark-a\">
		<div class=\"remark-c\">种类： " . htmlspecialchars($row['kind']) . "</div>
		<div class=\"remark-c\">日期：" . htmlspecialchars($row['date']) ."</div>
		<div class=\"remark-c\">地点：". htmlspecialchars($row['position']) . "</div>
		<div class=\"remark-c\">联系人：". htmlspecialchars($row['name']) . "</div>
		<div class=\"remark-c\">院系：". htmlspecialchars($row['school']) . "</div>
		<div class=\"remark-c\">联系电话：". htmlspecialchars($row['found_phone']) . "</div>
		<div class=\"remark-c\">详情：". htmlspecialchars($row['remark']) . "</div>
	</div>";
}
mysql_close($link);
?> 	
<a href="javascript: history.go(-1)">
	<input type="button" class="button button-1 button-back" value="返回">
</a>
</body>
</html>